﻿@model IEnumerable<sBlog.Net.Domain.Entities.PostEntity>
<div id="section1" class="menu">
    <ul style="list-style-type: square;">
        @foreach (var post in Model)
        {
            <li>
                @{
            var url = Url.RouteUrl("IndividualPost", new { year = post.PostYear, month = post.PostMonth, url = post.PostUrl, status = string.Empty });
            var shortTitle = post.PostTitle.Length > 80 ? string.Format("{0}...", post.PostTitle.Substring(0, 80)) : post.PostTitle;
                }
                <a href="@url" title="@post.PostTitle" class="titleNewPost">@shortTitle</a>
            </li>
        }
    </ul>
</div>
